package com.hzky.demo.service;

import com.hzky.demo.dao.CourseDao;
import com.hzky.demo.model.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by admin on 2017/6/7.
 */
@Service
public class CourseService {
    @Autowired
    CourseDao courseDao;
    public List<Course> getCourseListByTeacherId(String teacherId)
    {
        return courseDao.getCoursesWithTeacherId(teacherId);

    }

}
